﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marmat.Forms
{
    /// <summary>
    /// 
    /// </summary>
    public interface ISearchControlField
    {
        /// <summary>
        /// 名称
        /// </summary>
        string Name { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        string Caption { get; set; }

        /// <summary>
        /// 值转换是否通过
        /// </summary>
        /// <param name="txt"></param>
        /// <param name="value">转换之后的值</param>
        /// <returns></returns>
        bool ConvertValue(string txt, out object value);
    }
}
